package com.example.back.service;

import com.example.back.model.Room;
import com.example.back.model.User;
import org.springframework.data.domain.Page;

import java.util.List;

public interface RoomService {
    //查询所有房间
    List<Room> findAllRoom();
    List<Room> findByInformation(String information);
    List<Room> roomType(String type);
    List<Room> roomState(int state);
    List<Room> roomCount(int roomC);
    String findAccount(int id);
    Boolean insertRoom(String name, double cost, String type, int maxCount);
    Boolean updateRoom(int id, double cost);
    Boolean deleteRoom(int id);
    //查找房间名字
    String findRoomName(int id);
    //创建房间
    String createRoom(String account, String name, int state, String remark);
    //加入房间
    String joinRoom(String account, String name);
    //退出房间
    String leaveRoom(String account, String name);
    //查询在哪个房间
    Room findAtRoom(String account);
    //查询某个房间内的所有玩家
    List<User> findRoomUser(String name);
    //房间列表分页

}
